package com.jintian.smart.kernel.orm.impl;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.kernel.orm.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.jintian.smart.kernel.core.expr.IExpressionCalc;

public abstract class AbstractEntityServiceImpl<S extends IBaseExtMapper<T>, T> implements IService<T> {
    @Autowired
    protected S entityMapper;

    @Autowired(required = false)
    IExpressionCalc IExpressionCalc;

    @Override
    public IExpressionCalc getExpressionCalc() {
        return this.IExpressionCalc;
    }

    @Override
    public S getEntityMapper() {
        return this.entityMapper;
    }
}
